package com.cuit.bysj.dao;

import java.util.List;

import com.cuit.bysj.entities.Appraise;

public class AppraiseDao extends BaseDao {
	@SuppressWarnings("rawtypes")
	public List loadlist(String hql) {
		List list = getSession().createQuery(hql).list();

		return list;
	}

	public Appraise getByID(Integer id) {
		return (Appraise) getSession().get(Appraise.class, id);
	}

	// 更新操作
	public void update(Appraise app) {
		getSession().update(app);
	}

}
